package com.duguo.dynamicmvc.model.validator.exception;

import com.duguo.dynamicmvc.model.validator.Validator;

public class ValidationResult {
	private Object value;
	private Validator validator;
	
	public ValidationResult() {
	}
	
	public ValidationResult(Object value, Validator validator) {
		this.value = value;
		this.validator = validator;
	}
	
	public Validator getValidator() {
		return validator;
	}
	
	public void setValidator(Validator validator) {
		this.validator = validator;
	}
	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public String toString() {
		return validator.getName()+": "+value;
	}
}
